package com.mcp.converter.shared.response;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 执行结果类
 * @author zengxiong
 */
@Data
public class ExecutionResult {
    private final List<String> successItems = new ArrayList<>();
    private final List<String> failureItems = new ArrayList<>();

    public void addSuccess(String item) {
        successItems.add(item);
    }

    public void addFailure(String item) {
        failureItems.add(item);
    }

    public int getSuccessCount() {
        return successItems.size();
    }

    public int getFailureCount() {
        return failureItems.size();
    }

}